{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 用户管理
    <span class="c-gray en">&gt;</span> 用户列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
    <form  method="get" action="">
            <div class="text-c">
                <input type="text" class="input-text" style="width:250px" placeholder="UID/账号" value="{:input('word')}" name="word">
                <span class="select-box" style="width: 100px;">
                    <select name="status" class="select">
                        <option value="0">全部状态</option>
                        <option value="1" {if isset($_GET['status']) && $_GET['status'] == 1}selected{/if}>未处理</option>
                    </select>
                </span>
                <button type="submit" class="btn btn-success">搜索</button>
            </div>
        </form>
    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
            <a href="javascript:;" style="display: none;" onclick="layopen('添加公告','{:url('feedback_edit')}')" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加公告</a>
        </span>
        <span class="r">
            共有数据：<strong>{$list->total()}</strong> 条</span> </div>
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
            <tr>
                <th scope="col" colspan="9">账户列表</th>
            </tr>
            <tr class="text-c">
                <th width="30">ID</th>
                <th width="60">会员</th>
                <th width="100">内容</th>
                <th width="100">图片</th>
                <th width="100">状态</th>
                <th width="100">时间</th>
                <th width="100">操作</th>
            </tr>
        </thead>
        <tbody>
            {foreach $list as $v}
            <tr class="text-c">
                <td>{$v.id}</td>
                <td>{$v.uid} <br> {$v.uname}</td>
                <td class="text-l" style="width: 100px;">问：{$v.content}<br>
                    回：{$v.reply_msg|raw}
                </td>
                <td class="text-l"> 
                    {foreach :explode(',',$v['image']) as $image }
                    <img src="{$image}" alt="" style="width:30px;" onclick="window.open('{$image}')">
                    {/foreach}
                </td>
                <td>{$v.status == 0?'':'已处理'}</td>
                <td>{$v.created}<br>{$v.reply_time}</td>
                <td>
                    <a class="btn btn-default radius" title="个人信息" href="javascript:;" onclick="layopen('处理反馈','{:url('feedback_edit',['id'=>$v.id])}')"><i class="Hui-iconfont">&#xe6df;</i></a>
                    <a title="删除" class="btn btn-danger radius" href="javascript:;" onClick="del('{:url('notice_del')}','{$v.id}')"><i class="Hui-iconfont">&#xe6e2;</i></a>
                </td>
            </tr>
            {/foreach}
        </tbody>
    </table>
    <div class="page">
        {$list->render()|raw}
    </div>
</div>
{include file="public/footer" /}
